import request from "./request"

export const GetHomeData = () => request.get("/index/index")
export const GetSearchPupopData = () => request.get("/search/index")
export const GetSearchInputListData = (params) => request.get("/search/helper",{params})
export const GetSearchBodyListData = (params) => request.get("/goods/list",{params})
export const clearHistorySearch = (params) => request.post("/search/clearhistory",params)

export const GetZuanData = () => request.get("/topic/list")

export const GoLogin = (params) => request.post("/auth/loginByWeb",params)

export const GetProductDetailData = (params) => request.get("/goods/detail",{params})

export const GetxiangGaun = (params) => request.get("/goods/related",{params})


export const addToCart = (params) => request.get("/cart/goodscount",{params})

export const AddCart = (params) => request.post("/cart/add",params)


export const GetCartData = () => request.get("/cart/index")

export const GetChecked = (params) => request.post("/cart/checked",params)